package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.clients.Service1Client;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2025/1/14
 * @description
 */
@RestController
@RequestMapping("nacos2")
public class NacosController {

    @Resource
    private Service1Client service1Client;

    @GetMapping("m1")
    public String  method1(){
        String result = service1Client.method1();
        return "NacosController service2 ok invoke NacosController service1  => "+result;
    }

}
